<!DOCTYPE html>


<html>

	<head>
		<meta http-equiv=Content-Type content='text/html; charset=utf-8'>

		<meta name="viewport" content="width=device-width" />
		<title>上海雷迪-维修系统</title>
		<meta name="Keywords" content="上海雷迪-维修系统">
		<meta name="Description" content="上海雷迪-维修系统">
		<link rel="stylesheet" type="text/css" href="static/css/Step.css" tppabs="static/css/Step.css">
		<script type="text/javascript" src="static/js/jquery.min.js" ></script>
		<script type="text/javascript" src="static/js/jquery-1.12.4.js" ></script>

		<script type="text/javascript">
			var shs = "";
			var shis = "";
			$(function() {

				$.ajax({
						type: "POST",
						url: "/api/LBCitys/GetAddrs"
					})
					.success(function(result) {
						//console.log(result);
						if(result != "") {
							shs = result.split("-")[0];
							shis = result.split("-")[1];
						}
					});
			});
			var times;

			function submit() {
				//console.log('1111111');
				var sheng = shs; // $("#Sheng").find("option:selected").text();
				var shi = shis; // $("#Shi").find("option:selected").text();
				var qu = "" // $("#Qu").find("option:selected").text();
				var code = $("#code1").val();
				var dcode = $("#code").val();
				var position = $("#Position").val();

				if(dcode == "" || dcode.length != 4) {
					$("#code").focus();
					$("#dcodetip").html("请填写正确的动态口令");
					//return false;
				}
				var mobile = $("#Mobile").val();
				console.log('sdf');
				$("#ts").css("display", "block");
				jQuery.ajax({
					type: "post",
					url: "/api/LBProductValidate/TelValidate",
					data: {
						"TelCode": code,
						"Sheng": sheng,
						"Shi": shi,
						"Qu": qu,
						"Type": 0,
						"Code": dcode,
						"Position": position,
						"Phone": mobile
					},
					datatype: "json",
					success: function(response) {
						console.log(response);

						if(response == "0") {
							$("#dcodetip").html("动态口令错误，请重新输入。");
						} else if(response < 0) {
							$(".vcodetip").hide();
							$(".nocode").html("对不起！找不到您所验证的产品，谨防假冒!");
							clearTimeout(times);
						} else {
							clearTimeout(times);
							var arr1 = response.split("!");
							var arr = arr1[0].split("-");
							$("#sub").attr("onclick", "");
							$("#step2").hide();
							$("#step3").show();
							$("#showjg").html("恭喜您！您所验证的产品是正品！");
							$("#buy").html("<a href='" + arr1[1] + "' target='_blank' style='background:#0066cc; height:28px; line-height:28px; display:inline-block; color:#FFF;  width:100px; text-align:center; border-radius:5px;'>我要买</a>");
							$("#submit").attr("onclick", "");
							GetList();
							GetInfo(arr[0]);
							$("#cppj").html("<a href='http://315yun.com/lbadmin/vote?productid=" + arr[0] + "&vid=" + arr[2] + "-" + arr[1] + "' target=_blanknocode style='background:#0066cc; height:28px; line-height:28px; display:inline-block; color:#FFF;  width:100px; text-align:center; border-radius:5px;'>产品评价</a>");
						}
					}
				});
			}
			var code = "";

			function getTelInfo() {
				
				
				

				var reg = /^[0-9]{5}$/i;
				var hasfour = true;
				$(".nocode").html("");
				$(".vcodetip").show();

				var sheng = shs;
				var shi = shis;
				var qu = ""

				code = $("#code1").val();
				
				
				if(code.length<1){
					$(".vcodetip").css('visibility','visible');
					
				}else{
					$("#step1").hide();
					$("#step2").show();
					$("#Mobile").focus();
					$("#Position").val(response);
					$("#submit").attr("onclick", "");
				}

//				jQuery.ajax({
//					type: "post",
//					url: "/api/LBProductValidate/GetTelInfo",
//					data: {
//						"TelCode": code
//					},
//					datatype: "json",
//					success: function(response) {
//						if(response.toString().substr(0, 1) == "0") {
//							var arr = response.toString().substr(1, response.toString().length - 1).split("+");
//							$("#step1").hide();
//							$("#step3").show();
//							$("#showjg").html("对不起！您所验证的产品验证次数已用完。");
//							$("#buy").html("<a href='" + arr[1] + "' target='_blank' style='color:#FFF;' class='Nextbtn'>我要买</a>");
//							$("#submit").attr("onclick", "");
//							GetList();
//							GetInfo(arr[0]);
//							$("#cppj").html("<a href='lbadmin/votelist-productid=- + arr[0] + -.htm'/*tpa=http://315yun.com/lbadmin/votelist?productid=" + arr[0] + "*/ target='_blank' style='color:#FFF;' class='Nextbtn'>查看评论</a>");
//						} else if(response == -104) {
//							//$(".vcodetip").hide();
//							$(".vcodetip").css('visibility','hidden');
//							$(".nocode").html("对不起！此二维码尚未激活或已作废，请谨防假冒！");
//
//						} else if(response < 0) {
//							console.log(response);
//							//$(".vcodetip").hide();
//							$(".vcodetip").css('visibility','hidden');
//							$(".nocode").html("对不起！找不到您所验证的产品，请谨防假冒！");
//
//						} else {
//							$("#step1").hide();
//							$("#step2").show();
//							$("#Mobile").focus();
//							$("#Position").val(response);
//							$("#submit").attr("onclick", "");
//						}
//					}
//				});
			}

			function GetList() {

				if(code == "") {
					code = $("#code1").val();
				}
				jQuery.ajax({
					type: "post",
					url: "/api/LBProductValidate/GetValidateList",
					data: {
						"TelCode": code
					},
					datatype: "json",
					success: function(response) {
						$("#lzjl").html("<div class='commodityFields' style='text-align:left;'>" + response + "</div>");
					}
				});
			}

			function GetInfo(productid) {
				$.ajax({
						type: "POST",
						url: "/api/LBProduct/GetInfo/?id=" + productid
					})
					.success(function(result) {
						$("#ProductInfo").html(result);
					})
					.error(function(result) {
						var message = "很抱歉，操作出现异常！请联系管理员。";
						if(result) {
							if(result.responseJSON && result.responseJSON.ExceptionMessage) {
								message = result.responseJSON.ExceptionMessage;
							} else if(result.responseText) {
								message = result.responseText;
							}
						}
					});
			}
		</script>
	</head>

	<body style="zoom: 1;background-image:url(static/image/langbang/bj2.png);background-repeat:no-repeat;background-color:#f0f0f0;background-position-x:center">
		<div class="top-line">
			<div class="top-container">

				<div class="top-nav-left">
					<ul class="top-ul" style="float:right;">
						<li>
							<a href="winxin_of.html" class="toplink">官方微信</a>
						</li>
						<li style="display:none;">
							<a href="public_api.html" class="toplink">公开接口</a>
						</li>
						<li>
							<a href="about_us.html" class="toplink">关于我们</a>
						</li>
					</ul>
				</div>
				<!-- <div class="top-nav-left">
                <ul class="top-ul" style="float:right;font-size:24px;margin-top:-10px;">
                    <li style="font-size:24px;margin-right:150px;">中国商品大数据云防伪专家</li>

                </ul>
            </div>-->
				<div class="top-nav-right">
					<ul class="top-ul">
						<li style="line-height:50px;">
							您好，欢迎来到中国商品大数据云防伪专家官方网站!
						</li>
					</ul>
				</div>
			</div>
			<!--<img src="content/skin/langbang/top.png" style="Width:100%;">-->
			<!--<div style="background: url(content/skin/langbang/topbar2.png) no-repeat; background-size: 100%; height: 3px; width: 100%; "></div>-->
		</div>

		<div class="logo-img">
			<img src="static/image/langbang/logo.png" tppabs="static/image/langbang/logo.png" style="height: 55px;">
		</div>

		<div class="container" style="height:auto;Width: 70%;margin: 40px auto 0 auto;">
			<header class="header" style="display: none; height: 110px; vertical-align: middle;">
				<div class="row" style="height: 90px;margin-top:10px;background-color:#0f3d8b;">
					<a href="index.htm">
						<img src="static/image/langbang/main.png" tppabs="static/image/langbang/main.png" style="width:100%">
					</a>
				</div>
			</header>
			<div id="step1">
				<section class="tip">
					<div class="span12 well tipdiv">

						<div class="Step1div" style="display:none;">
							<span style="width:56px;overflow:hidden;">位&#12288;置:&#12288;</span>
							<input type="hidden" id="Position" value="0">
							<select id="Sheng" class="inputcode"></select>
							<select id="Shi" class="inputcode"></select>
							<select id="Qu" class="inputcode"></select>
							<span id="dingweitip"></span>
						</div>
						<div class="Step1div" style="color: #0096da; font-size: 25px; text-align: center; padding: 8px 0; font-family: " 微软雅黑 " ">
							刮开涂层 输入数字 查询真伪
						</div>
						<script type="text/javascript">
							$(function() {
								$("input[name='vcode']").keyup(function(event) { //keyup事件处理

									$("#dycode").css("background", "url('static/image/langbang/step1_code2.png') no-repeat");
									$("#dycode").css("background-size", "70%");

									var tmptxt = $(this).val();
									if(event.keyCode != "37" && event.keyCode != "39") {
										$(this).val(tmptxt.replace(/\D|^/g, '')); //验证是数字replace(/[^/d] /g,'')
									}
									var reg = /^[0-9]{5}$/i;
									var vcodenum = $(this).index();
									$(".nocode").html("");
									$(".vcodetip").show();
									$("div[class='vcodeShow']").eq(vcodenum - 1).html($(this).val()); //动态显示
									if(reg.test(tmptxt)) { //判断每次输入是否满5位数是否输入完成

										if(tmptxt.length > 4) { //进入下一输入框
											$("div[class='vcodetip']").eq(vcodenum - 1).css("visibility", "hidden");
											if(vcodenum <= 3) { //判断是否是最后一个输入框
												$("input[name='vcode']").eq(vcodenum).focus(); //将焦点置入下一输入框
											};
										};
									};
								}).bind("paste", function() { //处理了CTR+V事件
									var tmptxt = $(this).val();
									$(this).val(tmptxt.replace(/\D|^/g, ''));
								}).css("ime-mode", "disabled"); //CSS设置输入法不可用

								//失去焦点事件
								$("input[name='vcode']").blur(function() {
									var tmptxt = $(this).val();
									var vcodenum = $(this).index(); //获取对应输入框索引
									if(tmptxt.length > 0 && tmptxt.length <= 4) {
										$("div[class='vcodetip']").eq(vcodenum - 1).css("visibility", "visible"); //如果失去焦点显示提示
									}
								});
								//绑定最后一个输入框回车提交
								$("input[name='vcode']").bind('keypress', function(event) {
									if(event.keyCode == "13") {
										getTelInfo(); //最后一个输入框回车提交表单
									}
								});
							});
						</script>
						<div class="Step1div">
							<span style="width:56px;">产品序列号:&#12288;</span>
							<input id="code1" type="text" name='vcode' class="inputcode" style="font-size: 14px;" placeholder="请输入序列号" maxlength="5">
							<a href="javascript:void(0);" class="Nextbtn" style="color:white" onclick="getTelInfo()">下一步</a>
						</div>

						<div class="Step1div tip">
							<span class="space">&#12288;&#12288;&#12288;:</span>
							<div class="nocode"></div>
							<div class="vcodetip">请输入产品序列号</div>
						</div>
					</div>

				</section>
				<section style="display:none">
					<div class="title-divider">
						<div class="divider-arrow"></div>
						<h3 class="query-info">防伪查询提示:</h3>
					</div>

					<div style="background: url('static/image/langbang/img1.png') no-repeat; width: 251px; height: 300px; margin-top: -5px; float: right;">
						<a href="strategy.html" target="_blank" style="color:#fff;float:right;margin:10px 10px 0 0">刮码攻略</a>
					</div>
					<div class="pic" style="width:729px;position: relative; height: 296px; background: url('static/image/langbang/step1.jpg') no-repeat; background-size: 80%; background-position: center;">
						<div class="titleList">
							<ul>
								<li style="display:none;">如图所示：</li>
								<li>从左至右，从上至下，依次输入验证区20位防伪码。</li>
							</ul>
						</div>
						<div id="dycode" style="display: inline; width: 204px; height: 72px; position: absolute; right: 170px; top: 100px; background: url('static/image/langbang/step1_code1.png') no-repeat; background-size: 70%;">
							<div class="vcodeShow" style="padding-top: 10px;font-size:16px;"></div>
							<div class="vcodeShow" style="padding-top: 10px;left:60px;font-size:16px;"></div>
							<div class="vcodeShow" style="padding-top: 25px;font-size:16px;"></div>
							<div class="vcodeShow" style="padding-top: 25px;left:60px;font-size:16px;"></div>
						</div>

					</div>
				</section>
				<section style="display:none;">
					<div class="boxshadow"></div>
				</section>
			</div>

			<div class="shuziliuc clear" style="display:none;margin-left: -36px;">
				<h2 class="fl">
				<strong style="color:red;">防伪标签</strong>：
				</h2>
				<div class="fl">
					<div class="clear index_op">
						<a class="fl">01</a> <span class="fl">获取防伪码<i>></i></span>
					</div>
				</div>
				<div class="fl">
					<div class="clear index_op">
						<a class="fl">02</a> <span class="fl">输入防伪码<i>></i></span>
					</div>
				</div>
				<div class="fl">
					<div class="clear index_op">
						<a class="fl">03</a> <span class="fl">点击验证<i>></i></span>
					</div>
				</div>
				<div class="fl">
					<div class="clear index_op">
						<a class="fl">04</a> <span class="fl">显示防伪码查询结果<i></i></span>
					</div>
				</div>
			</div>

			<!--防伪查询提示-->
			<div style="width:940px;height:200px;margin:80px auto 0 auto">
				<p style="color:#9c9e9c;font-size:14px;">
					请对照您购买产品上的防伪标签，依次输入20位防伪码，每组5位,核对无误后进行查询。防伪查询结果为以下三种情况：
				</p>

				<hr style="margin-top:20px;margin-bottom:15px;">

				<span style="color:#0096da;font-size:16px;font-weight:bold;">
                 防伪查询提示：为保证消费者查询产品真伪客观公正，请自助查询，请勿通过人工查询
            </span>

				<p style="font-size:14px;color:#9c9e9c;margin-top:10px;line-height:25px;">
					防伪码查询正确——即您所购买的产品为经过315防伪查询中心的正牌产品，请您放心使用此产品<br> 防伪码查询错误——即防伪码查询不存在，您所购买的产品未经315防伪查询中心，但并不确定该产品为假冒产品
					<br> 防伪码查询重复——即同一防伪码被多次查询，请确认首次防伪码查询是否本人所为，若非本人所为，可能为假冒产品
					<br>
				</p>
			</div>

			<!--步骤一结束-->
			<div id="step2" style="display:none;">
				<section>
					<div class="span12 well">
						<div class="step2div">
							<input type="text" class="inputcode step2input" placeholder="请输入您的手机号" id="Mobile" maxlength="11">
							<a href="javascript:void(0);" id="GetBtn" name="60" onclick="SendMessage()" class="Nextbtn" style="color:#FFF;  width:120px;">获取口令位置</a>
							<span id="mobiletip"></span>
						</div>
						<div class="step2div" style="visibility: hidden;" id="dcodediv">
							<input id="code" type="text" class="inputcode step2input" placeholder="请输入验证码" maxlength="4">
							<a href="javascript:void(0);" id="sub" onclick="submit()" class="Nextbtn" style=" color:#FFF;  width:120px;">&#12288;验&#12288;&#12288;证&#12288;</a>
							<span id="dcodetip"></span>
						</div>
					</div>
				</section>

				<section>
					<div class="title-divider">
						<div class="divider-arrow"></div>
						<h3 class="query-info">防伪查询提示</h3>
					</div>

					<div class="pic" style="position: relative; height: 296px;">
						<div class="titleList">
							<ul>
								<li>短信将告诉您刮开位置1、或者位置2、或者位置3</li>
								<li>根据短信提示，刮开对应位置涂层，将验证码填入。</li>
							</ul>
						</div>
					</div>

					<!--底部去掉-->
				</section>
			</div>
			<!--步骤二结束-->
			<div id="step3" style="display:none;">
				<section>
					<div class="span12 well">
						<div id="showjg" class="step3showjg">
						</div>
					</div>
				</section>

				<section>
					<div class="Verification">
						<div class="productInfo info" style="width:99%;padding:5px;">
							<div class="step3info">产品信息</div>
							<div class="libox2" style="width:100%; height:auto;">
								<div id="ProductInfo" style="width:100%;" class=" bottom">
									<!------>
								</div>

							</div>
						</div>
						<div class="productInfo info" style="width:99%;padding:5px;">
							<div class="step3info">验证记录</div>
							<div class="libox2" style="width:100%;">
								<div id="lzjl" style="width: 100%; font-size: 14px;" class="bottom">
									<!------>
								</div>
							</div>
						</div>
						<div style="width:250px; margin:10px auto;">
							<div id="cppj" class="step3more" style="float:left;">
								<!------>
							</div>
							<div id="buy" class="step3more" style="float:left; margin-left:10px;">
								<!------>
							</div>
						</div>

					</div>
					<!--底部-->
				</section>

			</div>
			<!--步骤三结束-->
			<style>
				.member_list:after {
					overflow: hidden;
					display: block;
					clear: both;
					content: "";
					height: 0;
				}
				
				.member_list {
					border: 1px solid #e6e6e6;
					border-bottom: 0;
					font-size: 12px;
					*overflow: hidden;
					*zoom: 1;
				}
				
				.member_list ul {
					margin-right: -180px;
					*zoom: 1;
				}
				
				.member_list li {
					border: 1px solid #e6e6e6;
					border-left: 0;
					border-top: 0;
					height: 98px;
					width: 187px;
					float: left;
					*display: inline;
					_width: 189px;
				}
				
				.member_list a,
				.member_list img {
					display: block;
					margin: auto;
				}
				
				.member_list a {
					text-align: center;
					overflow: hidden;
					height: 100%;
				}
				
				.member_list a:hover {
					-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .3);
					box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .3);
					text-decoration: none;
					background: #efefef;
					position: relative;
					line-height: 35px;
					padding-top: 5px;
					height: auto;
					margin: -5px;
					color: #444;
					z-index: 1;
					_position: absolute;
					_width: 193px;
					height: 137px;
				}
			</style>
			<!--步骤三结束-->
			<section style="display:none;">
				<div style="background-image:url(static/image/langbang/titbg.png);height:30px; font-size:20px;color:#FFFFFF;margin-top:10px; margin-bottom:10px;">
					<span style="margin-left:30px;">联盟成员</span>
				</div>

				<div class="member_list">
					<ul>
						<li>
							<a href="javascript:void(0)" target="_blank">
								<img src="static/image/1.png" tppabs="static/image/1.png" style="display: block;"> 传统酒业
							</a>
						</li>
					</ul>
				</div>
			</section>
			<!--底部开始-->
			<section>

				

				<div style="margin-top:20px; margin-bottom:20px;text-align:center">
					<span style="margin-left:30px;font-size:16px;color:#747474;">您还可以通过以下方式进行防伪码查询</span>
				</div>

				<script type="text/javascript">
					//底部导航鼠标经过
					$(function() {
						$('.box div').mouseover(function() {
							$(this).stop().animate({
								"top": "-120px"
							}, 100);
						})
						$('.box div').mouseout(function() {
							$(this).stop().animate({
								"top": "0"
							}, 100);
						})
					})
				</script>

				<div class="Features">
					<ul class="box">
						<li>
							<div class="Icon1">
								<div class="toll_img">
									<img src="static/image/langbang/smsquery.png" tppabs="static/image/langbang/smsquery.png">
									<h3 class="query-method">短信查询</h3>
								</div>
								<div class="toll_info">
									<p class="query-tip">
										编缉短信内容防伪编码发送至1069 0233 1070 35918验证商品真伪。
									</p>
								</div>
							</div>
						</li>
						<li>
							<div class="Icon1">
								<div class="toll_img">
									<img src="static/image/langbang/qrquery.png" tppabs="static/image/langbang/qrquery.png">
									<h3 class="query-method">二维码查询</h3>
								</div>
								<div class="toll_info">
									<p class="query-tip">
										使用智能手机中的扫描二维码APP应用程序，扫描标签标识上的二维码验证商品真伪。
									</p>
								</div>
							</div>
						</li>
						<li>
							<div class="Icon1">
								<div class="toll_img">
									<img src="static/image/langbang/weixinquery.png" tppabs="static/image/langbang/weixinquery.png">
									<h3 class="query-method">微信查询</h3>
								</div>
								<div class="toll_info">
									<p class="query-tip">
										<img src="static/image/langbang/qrcode2.jpg" tppabs="static/image/langbang/qrcode2.jpg" class="imgcode">点击微信中的添加好友，搜索公众号"315云防伪平台"验证商品真伪。

									</p>
								</div>
							</div>
						</li>
					</ul>
				</div>
			</section>
			<section style="text-align: center; display: none;">
				<div style="background-image:url(static/image/langbang/titbg.png);height:30px; font-size:20px;color:#FFFFFF;text-align:left; margin-top:10px; margin-bottom:10px;">
					<span style="margin-left:30px;">合作伙伴</span>
				</div>
				<img src="static/image/langbang/parner_1.jpg" tppabs="static/image/langbang/parner_1.jpg" style=" margin:0 auto 0 auto;">
			</section>
			<!--底部结束-->
			<footer style=" text-align:center; color:#999; min-height:50px; padding:10px 0px">
				<img src="static/image/langbang/foot.png" tppabs="static/image/langbang/foot.png" width="482" height="51" border="0" usemap="#Map" />
				<map name="Map" id="Map">
                <area shape="rect" coords="2,1,112,50" href="javascript:void(0)" />
                <area shape="rect" coords="119,0,229,50" href="javascript:if(confirm('http://net.china.com.cn/index.htm  \n\n���ļ��޷��� Teleport Ultra ����, ��Ϊ ����һ�����·���ⲿ������Ϊ�����ʼ��ַ�ĵ�ַ��  \n\n�����ڷ������ϴ���?'))window.location='http://net.china.com.cn/index.htm'" tppabs="http://net.china.com.cn/index.htm" />
                <area shape="rect" coords="239,1,347,52" href="javascript:if(confirm('http://www.12321.cn/  \n\n���ļ��޷��� Teleport Ultra ����, ��Ϊ ����һ�����·���ⲿ������Ϊ�����ʼ��ַ�ĵ�ַ��  \n\n�����ڷ������ϴ���?'))window.location='http://www.12321.cn/'" tppabs="http://www.12321.cn/" target="_blank" />
                <area shape="rect" coords="353,1,480,52" href="javascript:if(confirm('https://ss.knet.cn/verifyseal.dll?sn=e15061052000000774513494299&comefrom=trust&trustKey=dn&trustValue=315yun.com  \n\n���ļ��޷��� Teleport Ultra ����, ��Ϊ ����һ�����·���ⲿ������Ϊ�����ʼ��ַ�ĵ�ַ��  \n\n�����ڷ������ϴ���?'))window.location='https://ss.knet.cn/verifyseal.dll?sn=e15061052000000774513494299&comefrom=trust&trustKey=dn&trustValue=315yun.com'" tppabs="https://ss.knet.cn/verifyseal.dll?sn=e15061052000000774513494299&comefrom=trust&trustKey=dn&trustValue=315yun.com" target="_blank" />
            </map><br/> 版权所有 贵州国威高新科技产业开发有限责任公司 备案号:黔ICP备18008862号-1
			</footer>
		</div>
		<script type="text/javascript">
			$(function() {
				$("#Mobile").keyup(function() { //keyup事件处理
					var tmptxt = $(this).val();
					if(event.keyCode != "37" && event.keyCode != "39") {
						$(this).val(tmptxt.replace(/\D|^/g, '')); //验证是数字replace(/[^/d] /g,'')
					}
					if(tmptxt.length == 11) {
						if(!CheckMobile(null, tmptxt)) {
							$("#mobiletip").html("手机格式不正确，请正确填写！");
						} else {
							$("#mobiletip").html("");
						}
					}
				});

				//回车提交手机号
				$("#Mobile").bind('keypress', function(event) {
					if(event.keyCode == "13") {
						SendMessage();
					}
				});
				//回车提交动态口令
				$("#code").bind('keypress', function(event) {
					if(event.keyCode == "13") {
						submit();
					}
				})
				//判断选择定位是否电击
				$("select").bind('click', function(event) {
					$("#dingweitip").html("");
				});
			});

			function CheckMobile(noticeobj, str) {
				var patrn = /(^1[3|5|8|9][0-9]{9}$)/;
				if(str != null && str != null) {
					if(patrn.exec(str)) {
						return true;
					} else {
						return false;
					}
				} else {
					return null;
				}
			};

			function SendMessage() {
				var mobile = $("#Mobile").val();

				if(mobile == null || mobile == "") {
					$("#mobiletip").html("请先输入手机号码");
					return;
				} else {
					if(!CheckMobile(null, mobile)) {
						$("#mobiletip").html("手机格式不正确");
						return;
					}
				}

				$("#dcodediv").css("visibility", "visible");
				jQuery.ajax({
					type: "post",
					url: "/api/LBProductValidate/GetTelInfo",
					data: {
						"TelCode": code
					},
					datatype: "json",
					success: function(response) {
						if(response.toString().substr(0, 1) == "0") {
							var arr = response.toString().substr(1, response.toString().length - 1).split("+");
							$("#showjg").html("对不起！您所验证的产品验证次数已用完");
							$("#submit").attr("onclick", "");
							$("#step1").hide();
							$("#step3").show();
							$("#buy").html("<a href= href='" + arr[1] + "' target=_blank'' style='background:#0066cc; height:28px; line-height:28px; display:inline-block; color:#FFF;  width:100px; text-align:center; border-radius:5px;'>我要买</a>");
							GetList();
						} else if(response < 0) {
							$("#ts").css("display", "none");
							$("#jg").css("display", "block");
							$("#jg").html("<li class='red' style='font-size:16px;line-height:30px; height:30px; '>【验证结果】</li><li class='green' id='jgts'>对不起！找不到您所验证的产品</li>");

						} else {

							$("#telInput").hide();
							$("#codeInput").show();
							$("#ts").css("display", "none");
							$("#Position").val(response);
							$("#submit").attr("onclick", "");
							// times=  setTimeout("getTelInfo()",60000);

							$("#GetBtn").attr("disabled", "disabled");
							$("#Mobile").attr("readonly", "readonly");
							$("#code").focus();
							$.ajax({
								url: "/API/TelSend/SendMessage",
								type: "post",
								data: {
									"Mobile": mobile,
									"Position": $("#Position").val()
								},
								dataType: "json",
								success: function(response) {

									if(response != "0") {
										$("#GetBtn").attr("disabled", "disabled");
										$("#Mobile").attr("readonly", "readonly");
										$("#GetBtn").css("background", "gray");
										$("#GetBtn").removeAttr('onclick', 'SendMessage()');
										timer();
									} else {
										$("#mobiletip").html("短信发送出错，请重试");
									}
								}
							});
						}
					},
					error: function() {
						alert("error!");
					}
				});

			}

			function timer() {
				$("#GetBtn").text(jQuery("#GetBtn").attr("name") + "秒后重新获取");

				if($("#GetBtn").attr("name") <= 0) {
					$("#GetBtn").text("获取口令位置");
					$("#GetBtn").css("background", "#0066cc");
					$("#Mobile").removeAttr("readonly");
					$("#GetBtn").removeAttr("disabled");
					$("#GetBtn").attr("name", "60");
					$("#GetBtn").attr('onclick', 'SendMessage()');

					return; //防止可能会出现再次循环
				} else {
					var time = setTimeout("timer()", 1000);
				}
				$("#GetBtn").attr("name", $("#GetBtn").attr("name") - 1);
			}
		</script>

	</body>

</html>